home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / AppleSearch / Windows / AppleSearch for Windows SDK / H / WERRORS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-25  |  2.7 KB  |  86 lines  |  [TEXT/dosa]

  1. /*====================================================================================================
  2.     File: WERRORS.H
  3.  
  4.     Copyright (C) 1994-1995 Apple Computer, Inc.  All rights reserved.
  5. ====================================================================================================*/
  6.  
  7. #if !defined __ERRORS__
  8. #define __ERRORS__
  9.  
  10. #if defined __cplusplus
  11. extern "C" {
  12. #endif
  13.  
  14. // NOTE: these are not necessarily the same constants as Mac error codes
  15.  
  16. // OSErr values and their meanings
  17.  
  18. #define     OSErrBase         -20000            // This base is used to prevent error
  19.                                                     // number conflicts with errors returned
  20.                                                     // by the apple talk stack in use on pc
  21. #define     eofErr             (OSErrBase-1)    // seek past the end of file attempted
  22. #define     ioErr             (OSErrBase-2)    // unable to close a file
  23. #define     dskFullErr         (OSErrBase-3)    // insufficient disk space on vol
  24. #define     dskFulErr         (OSErrBase-3)    // insufficient disk space on vol
  25. #define     paramErr         (OSErrBase-4)    // parameter error to func
  26. #define     kFileCreateErr (OSErrBase-5)    // unable to create a file
  27. #define     kFileOpenErr     (OSErrBase-6)    // unable to open a file
  28. #define     mFulErr             (OSErrBase-41)    // no memory (on open) or file won't load
  29. #define     fnfErr             (OSErrBase-43)    // unable to find a file
  30. #define     fLckdErr         (OSErrBase-45)    // file locked
  31. #define     fBsyErr             (OSErrBase-47)    // file busy error
  32. #define     dupFNErr            (OSErrBase-48)    // duplicate file
  33.  
  34. #define    internalErr        (OSErrBase-1000)    // used for many internal errors
  35.  
  36.  
  37.     // from wmemory.h
  38. #define memFullErr (-108)
  39. #define nilHandleErr (-109)
  40. #define memWZErr (-111)
  41. #define memSCErr (-116)
  42.  
  43. // PPC Toolbox error codes - these ARE the same as the Mac's values
  44.  
  45. #define    userCanceledErr        (-128)
  46. #define    notInitErr            (-900)
  47. #define    nameTypeErr            (-902)
  48. #define    noPortErr            (-903)
  49. #define noGlobalsErr        (-904)
  50. #define    localOnlyErr        (-905)
  51. #define destPortErr            (-906)
  52. #define sessTableErr        (-907)
  53. #define noSessionErr        (-908)
  54. #define badReqErr            (-909)
  55. #define portNameExistsErr    (-910)
  56. #define noUserNameErr        (-911)
  57. #define    userRejectErr        (-912)
  58. #define noResponseErr        (-915)
  59. #define portClosedErr        (-916)
  60. #define sessClosedErr        (-917)
  61. #define badPortNameErr        (-919)
  62. #define noDefaultUserErr    (-922)
  63. #define notLoggedInErr        (-923)
  64. #define noUserRefErr        (-924)
  65. #define networkErr            (-925)
  66. #define noInformErr            (-926)
  67. #define authFailErr            (-927)
  68. #define noUserRecErr        (-928)
  69. #define badServiceMethodErr    (-930)
  70. #define badLocNameErr        (-931)
  71. #define guestNotAllowedErr    (-932)
  72. #define nbpDuplicate         (-1027)
  73.  
  74. #if defined __cplusplus
  75. }
  76. #endif
  77.  
  78. #endif // __ERRORS__
  79.  
  80. //
  81. // $Log: /bogart/mac/shared/WERRORS.H $
  82. // 
  83. // 14    3/14/95 11:55a Rgordon
  84. //
  85.  
  86.